﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Vega.USiteBuilder;
using SPCFMedicineInformer.DocumentTypes.Base;
using SPCFMedicineInformer.Masterpages;

namespace SPCFMedicineInformer.DocumentTypes
{
    [DocumentType(Name="ContentPage",
        AllowedTemplates = new string[] 
            { 
                  "ContentPageATemplate"
                , "ContentMedicineCategory"
                , "Login"
                , "Consultation"
                , "ContentAccount"
                , "ContentAccount_MyAccount"
                , "ContentAccount_MyConsultation"
                , "ContentAccount_ConsultationDetails"
                , "Search"
                , "Content_ConditionListing"
                , "Content_ConditionDetail"
                , "ContentMedicineCategoryDetails"
                , "ContentGenericDetails"
                , "ContentMedicineDetails"
                , "Website404Page"
                , "Content_AbbreviationIndex"
            },
        DefaultTemplate = typeof(ContentPageATemplate),
        AllowedChildNodeTypes = new Type[] 
            {
                typeof(DetailsPage)
                ,typeof(ContentPage)
                ,typeof(RegistrationPage)
                ,typeof(RegistrationPage)
                
            }
        )]
    public class ContentPage : PageBase
    {

        [DocumentTypeProperty(UmbracoPropertyType.RichtextEditor, Name = "Content", Description = "",
            Tab = Constants.Tabs.Content)]
        public string Content { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.TextboxMultiple, Name = "Abbreviation Index", Description = "row is delimited by ]*[, column is delimted by )*(",
           Tab = Constants.Tabs.Content)]
        public string AbbreviationIndex { get; set; }
    }
}
